<template>
  <div class="titleBox flex align-center justify-between">
    <div class="leftBox flex align-center">
      <div class="shape">
        <div></div>
      </div>
      {{ title }}
    </div>
    <div class="rightBox">
      <slot/>
    </div>
  </div>
</template>
<script>
export default {
  name: '',
  props: {
    title: {
      type: String,
      default: '请传入标题名称'
    }
  },
  data() {
    return {}
  },
}
</script>
<style lang="scss" scoped>
.titleBox {
  height: 40px;

  .leftBox {
    font-size: 18px;
    font-weight: bold;
    color: #333;

    .shape {
      width: 18px;
      height: 18px;
      padding: 2px;
      box-sizing: border-box;
      border: 1px solid #409eff;
      transform: rotate(45deg);
      margin-right: 10px;

      div {
        width: 100%;
        height: 100%;
        background: #409eff;
      }
    }
  }
}
</style>
